﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace PMS_Service
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "ProcessFile" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select ProcessFile.svc or ProcessFile.svc.cs at the Solution Explorer and start debugging.
    public class ProcessFile : IProcessFile
    {
        public void DoWork()
        {
        }

        public void SplitWord(string text, string md5)
        {
            text = CODE.SplitWord.splitKeywords(text);
            text = CODE.SplitWord.splitNameWords(text);
            text = CODE.SplitWord.RemoveStopWord(text);

            CODE.FileDict.InsertFile(md5, text);
        }


    }
}
